package com.qfjy.homework.zhuqiangqiang;

/**
 * 命令接口的实现类
 */

public class BuyStock  implements  Order{
    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    public void execute() {
        abcStock.buy();
    }
}
